package com.cloud.force.api.handler;

import org.springframework.context.ApplicationContext;

public abstract class BeforeHandler implements Handler{

	@Override
	public void handler(Request request, Response resp, HandlerChain chain) {
		this.beforeHandler(request, resp, chain.getApplicationContext());
		chain.doHandler(request, resp);
	}
	
	public abstract void beforeHandler(Request request, Response resp, ApplicationContext context);

}
